package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {

    List<Role> findAll();

    PageResult pageQuery(QueryPageBean queryPageBean);

    void add(Role role, Integer[] menuIds, Integer[] permissionIds);

    Role findById(Integer id);

    List<Integer> findMenuIdsByUserId(Integer id);

    List<Integer> findPermissionIdsByRoleId(Integer id);

    void edit(Integer[] menuIds, Integer[] permissionIds, Role role);

    void deleteById(Integer id);
}
